<template>
  <div class="m-[15px]">
    <PublishMenu :param="search" :searchVal="searchVal" />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { useRouter } from "vue-router";
import Search from "@renderer/components/Search/index.vue";
import PublishMenu from "@renderer/components/publishMenu/index.vue";
import Login from "@renderer/components/login/index.vue";
import User from "@renderer/components/user/index.vue";
const showLogin = ref(false);
const hasLog = ref(false);
const router = useRouter();
const templateMarket = ref("templateMarket");
const search = ref("");
const emit = defineEmits(["search"]);
function templateMarketVal(value) {
  search.value = value;
}

let props = defineProps({
  searchVal: {
    type: String,
    default: "",
  },
});
const hanldLogin = () => {
  if (!hasLog.value) {
    showLogin.value = true;
  }
};
</script>

<style scoped lang="scss">
.el-menu {
  border-right: 0px !important;
}
</style>
